package com.example.dw.admin.dto;

import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * 分页请求DTO
 * @author system
 * @since 2024-01-01
 */
@Data
public class PageRequestDTO {
    
    @Min(value = 1, message = "页码必须大于0")
    private Integer page = 1;
    
    @Min(value = 1, message = "每页大小必须大于0")
    private Integer size = 10;
    
    private String keyword; // 搜索关键词
    
    private Integer status; // 状态筛选
    
    private String sortBy; // 排序字段
    
    private String sortOrder = "desc"; // 排序方向
} 